package kr.co.happenstance;

import com.nostra13.universalimageloader.core.ImageLoader;

import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;

public class ProfileActivity extends BaseActivity implements View.OnClickListener{
	protected final String TAG = "<<<ProfileActivity>>>";
	
	/**
	 * Profile 이미지를 보여줄 사용자 페이스북 아이디
	 */
	private String profileId;
	
	private ImageView ivProfile; 
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_profile);
		
		ivProfile = (ImageView) this.findViewById(R.id.iv_profile);
		
		profileId = getIntent().getStringExtra("profileId");
		Log.d(TAG, "profileId["+profileId+"]");
		
		String profileUrl = C.FACEBOOK_PROIFILE_URL+profileId+"/picture?type=large";
		Log.d(TAG, "profileUrl["+profileUrl+"]");
		ImageLoader.getInstance().displayImage(profileUrl, ivProfile);		
		
	}	
	
	@Override
	public void onClick(View view) {
		switch(view.getId()){
			case R.id.btn_pop_close:
				Log.d(TAG, "btn_pop_close onClick.....");
				finish();
				break;
		}		
	}

}
